package com.sansi.bleFloodlight.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;

import com.my.httpapi.api.annotation.Layout;
import com.my.httpapi.api.baseUtils.Utils;
import com.my.httpapi.api.baseView.BaseActivity;
import com.sansi.bleFloodlight.R;
import com.sansi.bleFloodlight.utils.RouterPath;

@Layout(R.layout.layout_activity_appinfo)
@Route(path = RouterPath.AppInfoPath)
public class AppInfoActivity extends BaseActivity {

    private TextView tvVersion;
    private View llPrivacyPolicy,llEmail;
    @Override
    protected void initView() {
        tvVersion=findViewById(R.id.tv_version);
        llPrivacyPolicy=findViewById(R.id.ll_privacy_policy);
        llEmail=findViewById(R.id.ll_email);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        tvVersion.setText(Utils.getAppVersionName(this));
        llPrivacyPolicy.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });

        llEmail.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
    }

    @Override
    protected void destory() {

    }

    @Override
    protected String showTitle() {
        return " ";
    }

    @Override
    protected boolean statusBarIsBlack() {
        return false;
    }

    @Override
    protected boolean showLeftArrow() {
        return true;
    }
}
